<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../jquery-1.7.2.js"></script>
</head>
<body>
<script>
$(function(){
    var strContent = ' tomatoes ';
    var result = $.trim(strContent);
    console.log(strContent);
    console.log(result);
})
</script>
</body>
</html>